<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>认证信息</title>
    <link rel="stylesheet" href="css/mui.min.css">
    <style>
        #productCertification>table{width:100%;}
        #productCertification>table td{height:2.5rem;text-align: center;color:#888;font-size:0.8rem;}
    </style>
</head>
<body>
    <header id="myNav" class="mui-bar mui-bar-nav">
        <a class="mui-icon mui-icon-arrowleft mui-action-back" style="color:#333;font-size:15px;margin-top:5px;" id="back">返回</a>
        <h1 class="mui-title">认证信息</h1>       
    </header>
    <div class="mui-content">
        <!-- 产品认证  -->
        <div id="productCertification">
                <table>
                    <tbody>
                        <!-- <tr>
                            <td>农药残留检测</td>
                            <td>已检测</td>
                            <td>
                                <span class="mui-icon mui-icon-arrowright"></span>
                            </td>
                        </tr>
                        <tr>
                            <td>绿色食品检测</td>
                            <td>已检测</td>
                            <td>
                                <span class="mui-icon mui-icon-arrowright"></span>
                            </td>
                        </tr> -->
                    </tbody>
                </table>
        </div> 
    </div>
    <script src="../dist/js/jquery-1.9.1.min.js"></script>
    <script src="js/mui.min.js"></script>
    <script>
       $(function(){
            var rzxxContent= JSON.parse(localStorage.getItem('rzxxContent'));
            console.log(rzxxContent);
            var html="";
            for(var i=0;i<rzxxContent.length;i++){
                html+='<tr><td style="width:45%" data-id='+i+'>'+rzxxContent[i].rzJg+'</td><td style="width:20%">已检测</td><td style="width:10%"><span class="mui-icon mui-icon-arrowright"></span></td></tr>'
            }
            $("#productCertification tbody").html(html);
            $("#productCertification").on('click','tr',function(){
                localStorage.setItem('dataId',$(this).children('td:first-child').attr('data-id'));
                localStorage.setItem('dataName',$(this).children('td:first-child').html());
                location.href='credentialsDetail.html';
            })
       })
    </script>
</body>
</html>